<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <title>客户订单</title>
        {include file="head_iframe.tpl"}
    </head>
    <body class="iframe_body">
        <div id="iframe_height_set">
            <div>
                <table class="dTable" width="100%">
                    <thead>
                        <tr class="custom_orders_tr">
                            <td style="display: none">订单id</td>
                            <td>订单号</td>
                            <td>申请人</td>                          
                            <td>申请时间</td>
                            <td>需求时间</td>
                            <td>处理状态</td>
                    
                        </tr>
                    </thead>
                    <tbody>
                        {foreach from=$order item=gan}
                            <tr class="custom_orders_tr">
                                <td style="display: none">{$gan.material_demand_id}</td>
                                <td>{$gan.material_demand_code}</td>
                                <td>{$gan.apply}</td>
                                <td>{$gan.create_date}</td>   
                                <td>{$gan.demand_date}</td>
                                <td>{$gan.order_state}</td>               
                            </tr>
                        {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
        <div id="bottom" style="text-align: center;">
            <a href="/pages/workshop/create_buy_material.php" class="button">提交申请</a>
            <a id="check_detail" class="button edit"  href="/pages/public/check_material_order_detail.php" onclick="check_material_order_detail();">查看详情</a>
            <a id="cusorder_del" class="button del" href="javascript:;" onclick="cancelMaterialOrder()">取消申请</a>
        </div>
    </body>
</html>